import {createRouter, createWebHistory} from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Manager',
      component: () => import('@/views/Manager.vue'),
      redirect: '/login',
      children: [
        { path: 'home', name: 'Home', component: () => import('@/views/manager/Home.vue')},
        // { path: 'course', name: 'Course', component: () => import('@/views/manager/Course.vue')},
        { path: 'scientificList', name: 'ScientificList', component: () => import('@/views/manager/ScientificList.vue')},
        // { path: 'scientificAudit', name: 'ScientificAudit', component: () => import('@/views/manager/ScientificAudit.vue')},
        { path: 'student', name: 'Student', component: () => import('@/views/manager/Student.vue')},
        { path: 'teacher', name: 'Teacher', component: () => import('@/views/manager/Teacher.vue')},
        { path: 'person', name: 'Person', component: () => import('@/views/manager/Person.vue')},
        { path: 'teaPerson', name: 'TeaPerson', component: () => import('@/views/manager/TeaPerson.vue')},
        // { path: 'courseList', name: 'CourseList', component: () => import('@/views/manager/CourseList.vue')},
        // { path: 'studentCourse', name: 'StudentCourse', component: () => import('@/views/manager/StudentCourse.vue')},
        // { path: 'grade', name: 'Grade', component: () => import('@/views/manager/grade.vue')},
        { path: 'TeacherS', name: 'TeacherS', component: () => import('@/views/manager/TeacherS.vue')},
        { path: 'Zx', name: 'Zx', component: () => import('@/views/manager/Zx.vue')},
        { path: 'Hx', name: 'Hx', component: () => import('@/views/manager/Hx.vue')},
        // { path: 'Lw', name: 'Lw', component: () => import('@/views/manager/Lw.vue')},
        { path: 'eassy', name: 'eassy', component: () => import('@/views/manager/eassy.vue')}
      ]
    },
    {path: '/login', name: 'Login', component: () => import('@/views/Login.vue'),},
    // {path: '/register', name: 'Register', component: () => import('@/views/Register.vue'),}
  ]
})

export default router
